package spring.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import static org.springframework.web.bind.annotation.RequestMethod.GET;

/**
 * Created by kassadin@foxmail.com on 2017/4/25 0025.
 */
@Controller
@RequestMapping({"/", "/hello"}) // 类级别的路径映射
public class HelloController {
    @RequestMapping(method = GET)
    public String home() {
        return "home";
    }
}
